#!/bin/sh
cd /opt/gitee/zhihu/flycms-admin
pwd
git reset --hard
git pull

#npm run dev
npm run build:prod

rm  -rf /opt/gitee/zhihu/flycms-admin/web/*

cp -r  /opt/gitee/zhihu/flycms-admin/dist/*  /opt/gitee/zhihu/flycms-admin/web

chmod 777 -R /opt/gitee/zhihu/FlyCms/*.sh
chmod 777 -R /opt/gitee/zhihu/flycms-admin/*.sh
